home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Tools / Mac / FWLocateCW < prev    next >
Encoding:
Text File  |  1996-08-16  |  999 b   |  27 lines  |  [TEXT/MPS ]

  1. ################################################################################
  2. # MetroWerks CodeWarrior Support
  3. # FWCWCppPPC is the full pathname to the MetroWerks CodeWarrior (PPC)
  4. # We save this permanently and extract just the application name so
  5. # we can send applevents to it from MPW
  6. ################################################################################
  7.  
  8. If  ¬ "{FWCWCppPPC}" && "`Exists "{PrefsFolder}"FWCWCppPPC`" 
  9.     Set FWCWCppPPC "`Catenate "{PrefsFolder}"FWCWCppPPC`"
  10. End
  11. If ¬ "`Exists "{PrefsFolder}"FWCWCppPPC`" || ¬ "`Exists "{FWCWCppPPC}"`"
  12.     Set Exit 0
  13.     Set FWCWCppPPC "`(GetFileName -q -s -t APPL -m "Where is your CodeWarrior IDE?") ≥ Dev:Null`"
  14.     If "{FWCWCppPPC}" != ""
  15.         Echo -n "{FWCWCppPPC}" > "{PrefsFolder}"FWCWCppPPC
  16.     Else
  17.         Set Exit 1
  18.         Exit
  19.     End
  20.     Set Exit 1
  21. End
  22. Set FWCWCppPPC "`Catenate "{PrefsFolder}"FWCWCppPPC`"
  23. (Evaluate "{FWCWCppPPC}" =~ /([¬:]*:)*(≈)®1/) > Dev:Null # Extract filename from a path into ®1
  24. Set FWCWCppPPCName "{®1}"
  25. Export FWCWCppPPCName
  26.  
  27.